package com.service;

import com.entity.GoldPoints;
import com.entity.User;
import com.exception.ServiceException;
import com.github.pagehelper.PageInfo;
import com.util.AjaxResult;
import com.vo.UserBackVo;

import java.util.Date;
import java.util.List;

public interface UserService {
    //luo
    public User loginBack(User user);
    public PageInfo<UserBackVo> findBackUser(Integer page,UserBackVo userBackVo);
    public void modifyBackUser(User user);
    public void modifyBackUserS(User user);
    public AjaxResult showBackUser(Integer id);

    User selectDetailGPById(int id) throws ServiceException;

    //罗前台
    public List<User> check(String login_name);
    public List<User> checkEmail(String email);
    public User loginFront(User user);
    public User regist(User user);
    public String modifyUser(Integer id,String nickname,String email,String newPassword);
    public void updateLoginDate(GoldPoints goldPoints);
    public GoldPoints findLoginDate(Integer user_id);
}
